package com.logistics.erp.entity.model;

import lombok.Data;

@Data
public class ErpDirectSave {

    private String companyCode;

    private String userUniqueId;

    private String orderNo;

    private String qty;

    private String receiveDeptCode;

    private String poReturnFlag;

    ErpDirectSave(){}

    public static ErpDirectSave build(MaterialFlowRow materialFlowRow) {
        ErpDirectSave erpDirectSave = new ErpDirectSave();
        erpDirectSave.setCompanyCode(materialFlowRow.getCompanyCode());
        erpDirectSave.setOrderNo(materialFlowRow.getShopOrder());
        erpDirectSave.setQty(materialFlowRow.getReceiveQty());
        erpDirectSave.setReceiveDeptCode(materialFlowRow.getDeptCode());
        return erpDirectSave;
    }
}
